/**
 * 运算符重载
 */
#include <string>
#include <iostream>

struct Item {
    int key;
    std::string val;

    bool operator==(const Item &rhs) const {
        return key == rhs.key && val == rhs.val;
    }

};


int main() {
    Item item1{1, "abc"};
    Item item2{1, "abc"};
    auto res = item1 == item2;
    std::cout << res << "\n";
}